package com.company.project.service.supplier;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.company.project.command.supplier.SupplierCreateOrUpdateCommand;
import com.company.project.command.supplier.SupplierListCommand;
import com.company.project.common.utils.GenUtils;
import com.company.project.entity.SysGenerator;
import com.company.project.entity.supplier.Supplier;
import org.apache.commons.io.IOUtils;

import java.io.ByteArrayOutputStream;
import java.util.List;
import java.util.Map;
import java.util.zip.ZipOutputStream;

public interface SupplierService  extends IService<Supplier>{

    public IPage<Supplier> selectAllTables(SupplierListCommand command);
    /**
     * 添加
     * @param command vo
     */
    public void create(SupplierCreateOrUpdateCommand command);


    /**
     * 更新
     */
    public void update(String id, SupplierCreateOrUpdateCommand command);


    /**
     * 启用
     *
     * @param createBy
     * @param id
     */
    public void enable(String id, String createBy);
    /**
     * 禁用
     *
     * @param createBy
     * @param id
     */
    public void disable(String id, String createBy);

    /**
     * 获取供应商
     *
     * @param id
     * @return
     */
    public Supplier get(String id);

    /**
     * 获取全部供应商
     *
     * @return
     */
    public List<Supplier> findAll();

    /**
     * 获取全部启用的供应商
     *
     * @return
     */
    public List<Supplier> findByEnable(String owner);
    /**
     * 根据id获取供应商
     *
     * @return
     */
    public List<Supplier> findByIds(List<String> ids);










}
